<?php
namespace App\Http\Controllers\Admin\Mall;

use App\Service\Admin\Mall\CartService;

class CartController extends BaseController
{
    //商城购物车

    //列表
    public function index()
    {
        $res = CartService::index();
        if ($res['code'] < 0) {
            return $this->toJson(-2, $res['msg']);
        }
        return $this->toJson(0, '', $res['data'], $res['total']);
    }
}